<div class="card">
<form action="/admin/setting" method="post">
    {{input "text" "name" "族谱名称" (printf `{"class":"w400","value":"%s"}` .name)}}
    <fieldset class="w400">
        <legend>先祖</legend>
        {{input "text" "ancestors_name" "姓名" (printf `{"class":"w400","value":"%s"}` .ancestors.name)}}
        {{input "text" "spouse" "配偶" (printf `{"class":"w400","value":"%s"}` .ancestors.spouse)}}
        {{input "date" "birth" "出生日期" (printf `{"class":"w400","value":"%s"}` .ancestors.birth)}}
        {{input "text" "remark" "备注" (printf `{"class":"w400","value":"%s"}` .ancestors.remark)}}
    </fieldset>
    {{input "textarea" "source" "简介" (printf `{"class":"w400 h100","value":"%s"}` .source)}}
    {{input "textarea" "profile" "姓氏故事" (printf `{"class":"w400 h100","value":"%s"}` .profile)}}
    <div style="text-align: right;" class="w400">
        <button type="submit" onclick="submitForm(event)"><span class="iconfont icon-save f12"></span>保存</button>
    </div>
</form>
</div>